﻿Imports System.Runtime.CompilerServices
Imports System.Runtime.Serialization

Module SerializationInfoExtensions
    <Extension()>
    Public Function GetValue(Of T)(info As SerializationInfo, name As String) As T
        Return CType(info.GetValue(name, GetType(T)), T)
    End Function
End Module
